package think.collections;

import java.util.ArrayList;

public class ApplesOrangesWithGenerics {
    public static void main(String[] args) {
        ArrayList<Apple> apples=new ArrayList<>();
        for(int i=0;i<3;i++){
            apples.add(new Apple());
        }
        //apples.add(new Orange())
        for(Apple apple:apples){
            System.out.println(apple.id());
        }
    }
}
